import request from './index'

export function getUserInfo() {
    return request({
        url: '/user/getInfo',
        headers: {
            repeatSubmit: false
        },
        method: 'get'
    })
}


export function login(userName, pwd) {
    return request({
        url: '/login',
        headers: {
            isToken: false,
            repeatSubmit: false
        },
        method: 'post',
        data: { userName, pwd }
    })
}